//深拷贝
export function cloneDeep(obj) {
    console.log(obj);
    var objClone = Array.isArray(obj) ? [] : {};
    if (obj && typeof obj === "object") {
      for (var key in obj) {
          if (obj[key] && typeof obj[key] === "object") {
            objClone[key] = cloneDeep(obj[key]);
          } else {
            objClone[key] = obj[key];
          }
      }
    }
    return objClone;
  }